<%-- 
    Document   : inc_student_form
    Created on : Jan 6, 2013, 12:58:14 PM
    Author     : matt
--%>

<%@page import="com.gestionabsences.form.FormStudent"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<table class="tab_form">
   <tr>
       <th><label for="<% out.print(FormStudent.CHAMP_MATIERE); %>">matières</label></th>
       <th><label for="<% out.print(FormStudent.CHAMP_OPTION); %>">justifications</label></th>
       <th><label for="<% out.print(FormStudent.CHAMP_TYPE_SEANCE); %>">type de séance</label></th>
   </tr>
   <tr>
       <td>
	   <select name="<% out.print(FormStudent.CHAMP_MATIERE); %>" id="<% out.print(FormStudent.CHAMP_MATIERE); %>">
		<option value="ALL" selected>Toutes</option>
		<c:forEach items="${ sessionScope.listeMatieres }" var="mapMatieres" varStatus="boucle">
		    <option value="${ mapMatieres.value }">${ mapMatieres.value }</option>
		</c:forEach>
	   </select>
       </td>
       <td>
	    <select name="<% out.print(FormStudent.CHAMP_OPTION); %>" id="<% out.print(FormStudent.CHAMP_OPTION); %>">
		<option value="ALL">Toutes</option>
		<option value="withJustifications">Avec justification</option>
		<option value="withoutJustifications">Sans justification</option>
	    </select>
       </td>
       <td>
	    <select name="<% out.print(FormStudent.CHAMP_TYPE_SEANCE); %>" id="<% out.print(FormStudent.CHAMP_TYPE_SEANCE); %>">
		<option value="ALL" selected>Tous</option>
		<option value="COURS">Cours</option>
		<option value="TDS">TPs</option>
		<option value="TPS">TDs</option>
	    </select>
       </td>
   </tr>
   <tr>
       <td><span class="erreur">${form.erreurs['matiere']}</span></td>
       <td><span class="erreur">${form.erreurs['typeSeance']}</span></td>
       <td><span class="erreur">${form.erreurs['option']}</span></td>
   </tr>
   <tr>
	<td><span class="erreur">${form.erreurs['erreur']}</span></td>
   </tr>
</table>